<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>两个盒子</title>
    <style type="text/css">
        #father{
            height: 200px;
            width: 200px;
            border: 1px solid rebeccapurple;
            background-color:rebeccapurple ;
        }
        #son{
            height: 100px;
            width: 100px;
            border: 1px solid salmon;
            background-color:salmon ;
            margin: auto;
            padding-top: 50px;

        }
    </style>
</head>
<body>
<div id="father">
    <div id="son">

    </div>

</div>
</body>
</html>